/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dotexe.webframework.core.clientactions;

import org.json.JSONException;

import com.dotexe.webframework.core.ClientApplication;

/**
 *
 * @author jovan.tomasevic
 */
public class MessageBox {
    public static void Show(ClientApplication context, String caption, String body) throws JSONException{
        ShowInfoMessageConfiguration message = new ShowInfoMessageConfiguration();
        message.setText(body);
        message.setCaption(caption);
        context.clientActions.add(message);
    }
//    public static void ShowErrorMessage(ClientApplication context, String caption, String body) throws JSONException{
//        ErrorMessage message = new ErrorMessage();
//        message.setText(body);
//        message.setCaption(caption);
//        context.add(message);
//    }
}
